/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * Description:
 * Author: huawei
 * Create: 2022-4-19
 */
#ifndef SENSOR_USER_AGENT_H
#define SENSOR_USER_AGENT_H

#include <linux/slab.h>
#include <linux/fs.h>
#include "ascend_hal_error.h"

struct dms_sensor_node_cfg {
    char name[20]; /* 20: max name len */
    unsigned short node_type; /* bit 15~8: 000-hardware 001-soft 111-product; bit 7~0: node_type */
    unsigned char sensor_type;
    unsigned char reserve[41]; /* 41: unused */
};

/* dms sensor ioctl args */
struct dms_sensor_user {
    unsigned int dev_id;
    struct dms_sensor_node_cfg cfg;
    uint64_t handle;
    int value;
};

#endif /* SENSOR_USER_AGENT_H */
